<template>
      <div class="header">
        <div class="text">外卖</div>
        <div class="location">
          <van-icon name="location" />
          <span>阿彬外卖</span>
          <van-icon name="arrow" />
        </div>
      </div>
</template>

<script>
export default {
  name:'Header'
}
</script>

<style lang="less" scoped>
.header{
    display: flex;
    justify-content: space-between;
    width: 100%;
    height: 50px;
    background-image: linear-gradient(#ffc400,#fff);
    box-sizing: border-box;
    padding: 0 10px;
    .text{
        line-height: 50px;
        font-size: 20px;
        font-weight:700;
    }
    .location{
         display: flex;
         justify-content: flex-end;
         align-items: center;
         span{
             margin: 0 5px;
         }
    }
}
</style>